home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / desktop / fonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-29  |  1.5 KB  |  55 lines

  1. #ifndef DESKTOP_FONTS_H
  2. #define DESKTOP_FONTS_H TRUE
  3.  
  4. /*
  5. **  $VER: fonts.h
  6. **
  7. **  Font Definitions.
  8. **
  9. **  (C) Copyright 1996-1998 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <dpkernel/dpkernel.h>
  15. #endif
  16.  
  17. /***************************************************************************
  18. ** Font.
  19. */
  20.  
  21. #define TAGS_FONT ((ID_SPCTAGS<<16)|ID_FONT)
  22. #define VER_FONT  1
  23.  
  24. typedef struct Font {
  25.   struct Head Head;        /* [00] Standard header structure */
  26.   struct FileName *Source; /* [12] Source or Name from the FONTS: dir */
  27.   LONG   Flags;            /* [16] Special flags */
  28.   LONG   Colour;           /* [20] RGB colour of the font */
  29.   WORD   Point;            /* [24] The Point/Height of the font */
  30.   WORD   Gutter;           /* [26] Amount of space for tails on 'g', 'y' etc */
  31.   WORD   Height;           /* [28] Point + Gutter */
  32.   struct FontChar *Char;   /* [30] Pointer to font character array */
  33. } OBJFont;
  34.  
  35. typedef struct FontChar {
  36.   UBYTE Char;    /* Character code */
  37.   UBYTE Empty;   /* Reserved */
  38.   WORD  Width;   /* Width of character */
  39. } FontChar;
  40.  
  41. #define FNT_BOLD        0x00000001
  42. #define FNT_ITALICS     0x00000002
  43. #define FNT_SMOOTH      0x00000004
  44. #define FNT_TRANSPARENT 0x00000008
  45.  
  46. #define FTA_Source (TAPTR|12)
  47. #define FTA_Flags  (TLONG|16)
  48. #define FTA_Colour (TLONG|20)
  49. #define FTA_Point  (TWORD|24)
  50. #define FTA_Gutter (TWORD|26)
  51. #define FTA_Height (TWORD|28)
  52. #define FTA_Char   (TAPTR|30)
  53.  
  54. #endif /* DESKTOP_FONTS_H */
  55.